package com.loong.java.json.regex;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import scala.Tuple4;

/**
 * Created by 梁浩峰 on 2016/9/14 15:51.
 */
public class JsonRegex {
    public static Tuple4<String,String,String,String> jsonRegx(String json){
        JSONArray array = JSONArray.fromObject(json);
        Object o = array.get(0);
        JSONObject object = JSONObject.fromObject(o);
        return new Tuple4<String, String, String, String>(object.get("send_time").toString(),object.get("send_log_info").toString(),object.get("log_level").toString(),object.get("send_log_address").toString());
    }
}
